package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

/**
 * @Author: wzw
 * @CreateTime: 2025-09-30  00:23
 * @Description: TODO
 **/
public interface DishService {

    public void saveDishAndFlavor(DishDTO dishDTO);

    /**
     * @description: 菜品分页查询
     * @author: wzw
     * @date: 2025/9/30 0030 0:59
     * @param: [dishPageQueryDTO]
     * @return: com.sky.result.PageResult
     **/
    PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);

    /**
     * @description:
     * @author: wzw
     * @date: 2025/10/3 0003 15:19
     * @param: [ids]
     * @return: void
     **/
    void delete(List<Long> ids);

    /**
     * @description: 根据id查询菜品和对应的口味数据
     * @author: wzw
     * @date: 2025/10/3 0003 15:19
     * @param: [id]
     * @return: com.sky.vo.DishVO
     **/
    DishVO getByIdWithFlavor(Long id);

    /**
     * @description: 修改菜品和对应的口味数据
     * @author: wzw
     * @date: 2025/10/3 0003 17:03
     * @param: [dishDTO]
     * @return: void
     **/
    void update(DishDTO dishDTO);
    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);

    /**
     * 根据分类id查询菜品
     * @param categoryId
     * @return
     */
    List<Dish> list(Long categoryId);

    /**
     * 批量起售停售
     * @param status
     * @param id
     */
    void startOrStop(Integer status, Long id);
}
